package org.chen.spring.cloud.finchley.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author chensj
 * @date 2020-02-08 14:10
 */
@FeignClient(value = "ch6-3-hello-service")
public interface ConsumerService {

  /**
   * 请求Consumer 数据
   *
   * @return str
   */
  @RequestMapping(value = "/helloService", method = RequestMethod.GET)
  public String getHelloServiceData();
}
